package com.sm.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AccountDao {
    @Update("update account set money= money + #{money} where name=#{name}")
    public void addMoney(@Param("name") String name, @Param("money") Integer money);
    @Update("update account set money= money - #{money} where name=#{name}")
    public void lessMoney(@Param("name") String name, @Param("money") Integer money);
}
